package org.jeecg.modules.zcgl.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum PayStatusEnum {


    UNPAID(10, "未收"),
    PAID(20,"已收"),
    HIRE_CANCEL(30,"退租取消"),
    DEMOLITION_FEE_CANCEL(50,"拆费取消"),
    TERMINATE_CANCEL(40,"终止取消");

    int status;
    String name;

    public static String getName(Integer status){
        if (status == null){
            return null;
        }
        for (PayStatusEnum mode : PayStatusEnum.values()){
            if (mode.getStatus() == status.intValue()) {
                return mode.name;
            }
        }
        return null;
    }
}
